package com.i2863.tools.weixinmp.dao.mapper;

import com.i2863.tools.weixinmp.domain.NewsInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2017/3/9.
 */
public interface NewsMapper {

    public NewsInfo getNewsByUrl(@Param("url") String url);

    public void update(NewsInfo info);

    public void save(NewsInfo info);

    public List<NewsInfo> getNewsBySource(@Param("source") String source);

    public NewsInfo getNewsInfoById(@Param("id") Integer id);
}
